/*************************************************************************
	> File Name: CheapGoods.java
	> Author: Potter
	> Mail: tobewhatwewant@gmail.com 
	> Created Time: 2014年07月07日 星期一 21时26分09秒
 ************************************************************************/
public class CheapGoods extends Goods {
    public int weight;

    public void newSetWeight(int w) {
        weight = w;
        System.out.println("int 型的 weight = "+weight);
    }

    public double newGetPrice() {
        double price = weight * 10;
        return price;
    }
}
